package com.example.comm.controller;


import com.example.comm.pojo.CarData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/CarData")
public class CarDataController {

    @GetMapping("/getCarData")
    public CarData getCarData (){
        CarData carData = CarData.getInstance(200,100,-1,0);
//        System.out.println(carData.getLat() + "wwwwwww" +carData.getLon());
        return carData;
    }
}
